$(document).ready(function() {

	var script	= $("script[src*=hcard.js]:first");
	var src			= script.attr("src");
	var query = src.substr(src.indexOf("?") + 1);
	var parameters = query.split("&");

	var p = {};
	for (var i = 0; i < parameters.length; i++) {
		var keyAndValue = parameters[i].split("=");
		var key		=	keyAndValue.shift();
		var value		=	keyAndValue.shift();
		p[key] = value;
	}

	var vcard		= $(".vcardOrganization");
	var width		=  vcard.width();
	var height		=  vcard.height();
	$(".vcardOrganization .hCardContent").after("<canvas id=\"hcard\" />");
	$("#hcard").attr({"height": height, "width": width	});
	$.get(p.path + "/processing/circles.pde", function(source) { Processing($("#hcard").get().shift(), source); });
});